const express = require('express')
const app = express()
const port = 8000

app.use(express.static("../../frontend/dist"));
app.use(express.json())

app.listen(port, () => {
  console.log(`Example app listening on port ${port}`)
})



// app.post('/add-rule',(req,res,next)=>{
//     res.send('response of add-rule')
//     console.log(req.body);
// })

// app.post('/delete-rule',(req,res,next)=>{
//     console.log(req.body);
//     res.send('response of delete-rule')
// })

// app.get('/refresh-rules',(req,res,next)=>{
//     console.log('refresh-rules');
//     res.send('response of refresh-rules')
// })